package it.polimi.swKnights.SWIMv2.general;

public enum Errors
{
	wrongpass("Wrong password inserted, please try again and check your caps lock"), 
	noexistuser("Sorry, the user doesn't exist"),
	invalidlogin("Invalid username or password, please try again and check your caps lock"),
	notuser("Sorry, permission denied, you must to login"),
	alreadyadmin("The user is already an admin"), 
	session("Invalid session, if you don't know what does this mean," +
			" please just restart from the home page"), 
	notadmin("Permission denied, you must be an admin to access this area"), 
	notfounder("Permission denied, you must be the founder to access this area"),
	notbanned("The user is not a banned user"),
	banadmin("Sorry, You cannot ban an Admin"), 
	notfound("User not found, please try again or use a more general search criteria"), 
	selffriend("Are you feeling loonely?"), 
	yetasked("Friendship already asked"),
	registration("User already exist"),
	alreadyfriends("User is already your friend"),
	internalconventionerror("Something went wrong within the server! It's not you it's us." +
			" Try to restart back from home page"),
	oldpassword("Invalid old password"),
	BadPicture("You can upload only picture!"),
	BadSize("Picture is too big!"),
	dataInPast("You cannot specify a data in the past"),
	badData("database inconsistency"), 
	nomatchinghelp("No matching help request to leave the feedback"),
	noability("No such ability found!"),
	alreadyexistingability("Ability already exist"),
	banneduser("Sorry, you are under a ban, please try again when your ban ends"), 
	noselfremove("You can't remove yourself as admin"),
	founderDelete("You are the founder and you can't be deleted!"),
	badExplanation("You must set at most 20 characters long explanation!"),
	tooShortAbilityName("The ability name you inserted is too short," +
			" Please insert an ability name of 3 characters or more"), 
	dateInFuture("We all would like to live in the future, or even in the past somethime, but we" +
			"can't so, Please, insert a correct date ");
	
	
	

	private String errorMessage;
	
	private Errors(String errorMessage)
	{
		this.errorMessage = errorMessage;
	}
	
	public String getErrorMessage()
	{
		return this.errorMessage;
	}
}
